package com.example.shotscreen;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.text.TextPaint;
import android.util.AttributeSet;
import android.widget.RelativeLayout;

/**
 * Created by Alex-Zhang on 2017/11/6.
 */

public class StampView extends RelativeLayout {

    private String content = "";
    private String date = "";
    private TextPaint mPaint;
    private Bitmap bitmap;


    public StampView(Context context) {
        this(context,null);
    }

    public StampView(Context context, AttributeSet attrs) {
        this(context, attrs,0);
    }

    public StampView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);

        mPaint = new TextPaint();
        mPaint.setAntiAlias(true);
        mPaint.setColor(Color.RED);
        mPaint.setTextSize(20);
        bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.ic_launcher_background);

    }

    @Override
    protected void onDraw(Canvas canvas) {

    }
}
